package com.jintian.smart.base.api.oa.entity;

import com.jintian.smart.kernel.core.domain.IEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.beetl.sql.annotation.builder.FillStrategy;
import org.beetl.sql.annotation.builder.UpdateTime;
import org.beetl.sql.annotation.entity.AssignID;
import org.beetl.sql.annotation.entity.Table;

import java.time.LocalDateTime;

/**
 * 企业员工
 */
@Data
@Table(name = "oa_enterprise_employee")
@NoArgsConstructor
public class EnterpriseEmployeeEntity implements IEntity {
    @AssignID("snowid")
    private Long enterpriseEmployeeId;

    /**
     * 企业ID
     */
    private Long enterpriseId;
    /**
     * 员工
     */
    private Long employeeId;

    /**
     * 创建时间
     */
    @UpdateTime(FillStrategy.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @UpdateTime(FillStrategy.INSERT_UPDATE)
    private LocalDateTime updateTime;

    public EnterpriseEmployeeEntity(Long enterpriseId, Long employeeId) {
        this.enterpriseId = enterpriseId;
        this.employeeId = employeeId;
    }
}
